:root {
	--bg: 0 0% 100%;
	--foreground: 222.2 84% 4.9%;
	--sidebar-bg: #FFDF6C;
	--panel-bg: #F6F6F6;
	--card-bg: #ffffff;
	--muted: #3F3F3F;
	--accent: #FFD633;
}

* {
	box-sizing: border-box;
}

html,body,#root {
	height: 100%;
}

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
	background: hsl(var(--bg));
	color: hsl(var(--foreground));
}

.dashboard-root {
	display: flex;
	min-height: 100vh;
}

/* Sidebar */
.sidebar {
	background: var(--sidebar-bg);
	width: 300px;
	padding: 28px 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.logo {
	display: block;
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.nav {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nav-item {
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 16px;
	background: transparent;
	border: 0;
	padding: 10px 12px;
	font-size: 16px;
	color: #111827;
	cursor: pointer;
	text-align: left;
	position: relative;
	border-radius: 12px;
	overflow: visible;
	transition: transform .28s cubic-bezier(.2,.9,.2,1), background .2s;
}

.nav-item i {
	font-size: 22px;
	color: #111827;
	width: 28px;
	text-align: center;
	transition: transform .22s, color .22s;
}

.nav-item span {
	transition: opacity .22s, transform .22s;
}

.nav-item::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%) scaleY(0);
	width: 6px;
	height: 60%;
	background: var(--accent);
	border-radius: 8px;
	transform-origin: center;
	opacity: 0;
	transition: transform .26s, opacity .26s;
}

.nav-item:hover {
	transform: translateX(8px);
	background: rgba(0,0,0,0.03);
}

.nav-item:hover i {
	transform: translateX(2px) scale(1.02);
	color: #0f172a;
}

.nav-item:hover span {
	opacity: 1;
}

.nav-item:hover::after {
	transform: translateY(-50%) scaleY(1);
	opacity: 1;
}

.nav-item[aria-current="page"] {
	background: rgba(0,0,0,0.04);
}

.logout {
	margin: 8px;
}

.logout .nav-item {
	padding: 8px;
}

/* Main content */
.main {
	flex: 1;
	background: var(--panel-bg);
	padding: 36px 48px;
	border-top-left-radius: 32px;
	min-height: 100vh;
	box-shadow: 0 4px 4px rgba(0,0,0,0.08);
}

.title {
	font-family: Montserrat, sans-serif;
	font-weight: 800;
	font-size: 36px;
	margin: 0;
	color: #0f172a;
}

.subtitle {
	margin: 6px 0 0 0;
	color: var(--muted);
	font-size: 18px;
}

/* Stats grid */
.stats {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 24px;
	margin-top: 28px;
}

.card {
	background: var(--card-bg);
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	min-height: 150px;
}

.card-title {
	margin: 0;
	font-size: 20px;
	color: #0f172a;
	font-weight: 700;
}

.card-number {
	margin-top: 14px;
	font-size: 32px;
	font-weight: 300;
	color: #0f172a;
}

.card-subtitle {
	margin-top: 18px;
	font-size: 18px;
	font-weight: 700;
}

/* ===== Recent Activities Section ===== */
.activities {
	margin-top: 48px;
}

.activities h2 {
	font-family: Montserrat, sans-serif;
	font-size: 28px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 20px;
}

/* Table container */
.activities-table {
	background: var(--card-bg);
	border-radius: 18px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

/* Table head */
.table-head {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--accent);
	color: #0f172a;
	font-weight: 700;
	font-size: 16px;
	padding: 14px 18px;
	text-align: left;
}

/* Table body and rows */
.table-body {
	display: flex;
	flex-direction: column;
}

.table-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: center;
	padding: 14px 18px;
	border-bottom: 1px solid #e5e5e5;
	font-size: 15px;
	color: #3f3f3f;
	transition: background 0.2s;
}

.table-row:nth-child(even) {
	background: #fafafa;
}

.table-row:hover {
	background: #f3f3f3;
}

/* Status color coding */
.status-approved {
	color: #16a34a;
 /* Green */
	font-weight: 600;
}

.status-pending {
	color: #ca8a04;
 /* Yellow */
	font-weight: 600;
}

.status-denied {
	color: #dc2626;
 /* Red */
	font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
	.table-head {
		display: none;
	}

	.table-row {
		grid-template-columns: 1fr;
		background: var(--card-bg);
		border: 1px solid #e5e5e5;
		border-radius: 12px;
		margin-bottom: 12px;
		padding: 16px;
	}

	.table-row > div {
		display: flex;
		justify-content: space-between;
		padding: 6px 0;
		font-size: 15px;
	}

	.table-row > div::before {
		content: attr(data-label);
		font-weight: 600;
		color: #0f172a;
	}
}


/* Responsive */
@media (max-width:1024px) {
	.stats {
		grid-template-columns: repeat(2,1fr);
	}

	.sidebar {
		width: 92px;
		padding: 20px 12px;
	}

	.logo {
		width: 72px;
		height: 72px;
	}

	.nav-item span {
		display: none;
	}

	.nav-item::after {
		left: 6px;
	}
}

@media (max-width:640px) {
	.dashboard-root {
		flex-direction: column;
	}

	.sidebar {
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		padding: 12px;
		gap: 12px;
	}

	.nav {
		flex-direction: row;
		gap: 12px;
	}

	.main {
		border-top-left-radius: 0;
		padding: 18px;
	}

	.stats {
		grid-template-columns: 1fr;
	}

	.table-head {
		display: none;
	}

	.table-row {
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 12px;
	}

	.table-row > div {
		padding-left: 56px;
	}

	.row-name img {
		width: 40px;
		height: 40px;
	}
}